<?php
class foo
{
var $x;

f_construct()
{
	$this->x = "Construction is called";
}

f_destruct()
{
	$this->x = $x;
}

f_destruct()
{
	printf("Destruction is called!");
}

functuon setX($x)
{
	$this->x = $x;
}

function getX()
{
	return $this->x;
}

function display()
{
	printf($this->x);
}
}

$a = new foo();
$a->display();

$a->setX("Hello world!");
$a->display();

$b = new for("Welcome to php");
$b->display();
?>
